<template>
	<u-popup v-model="vuex_cash" mode="bottom" border-radius="20" @open="init" @close="cancel">
		<cash-coin :title="title" :btnText="btnText" ref="cash" @ok="ok" @cannel="cancel"></cash-coin>
	</u-popup>
</template>

<script>
	import {mapState} from 'vuex';
	import cashCoin from "@/components/cash-popup/cashCoin";	//充值
	export default {
		props: {
			title: {
				type: String,
				default () {
					return "每邀请一人可领取200趣豆";
				}
			},
			btnText: {
				type: String,
				default () {
					return "邀请好友领趣豆";
				}
			},
		},
		components: {
			cashCoin,
		},
		data() {
			return {
				isCash: false,
				login: {
					appId: '',
					encryptedData: '',
					code: '',
					iv: ''
				},
			}
		},
		created() {
			
		},
		computed: {
			...mapState(['vuex_cash']),
		},
		methods: {
			init() {
				
			},
			ok() {
				
			},
			cancel() {
				this.$store.commit('setCash', false);
				//uni.$emit('cash', false);
			},
		}
	}
</script>

<style lang="scss" scoped>
	.tip-info {
		font-size: 30rpx;
		display: flex;
		justify-content: center;
		color: #303133;
		margin-bottom: 15px;
	}
	.page {
		padding: 30px 15px;
	}
	.avatar-box {
		display: flex;
		justify-content: center;
		padding: 15px;
		padding-top: 0;
	}
</style>
